package com.example.pcl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.pcl.pojo.dto.AnnouncementQueryDTO;
import com.example.pcl.pojo.dto.AnnouncementRequestDTO;
import com.example.pcl.pojo.entity.Announcements;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pcl.pojo.vo.AnnouncementResponseVO;
import com.example.pcl.result.PageResult;

import java.util.List;

/**
 * <p>
 * 公告表，系统公告或重要信息发布 服务类
 * </p>
 *
 * @author xx
 * @since 2024-12-17
 */
public interface IAnnouncementsService extends IService<Announcements> {

    void addAnnouncement(AnnouncementRequestDTO requestDTO);

    void updateAnnouncement(Integer id, AnnouncementRequestDTO requestDTO);

    void deleteAnnouncements(List<Integer> ids);

    PageResult<?> pageList(AnnouncementQueryDTO queryDTO);

    AnnouncementResponseVO getAnnouncementById(Integer id);
}
